import { ElMessageBox, } from 'element-plus'
import type { RendererElement, RendererNode } from 'vue';
export const Modal = (option: {
  type?: string; message: string | VNode<RendererNode, RendererElement, {
    [key: string]: any;
  }>; title?: string; cbk?: Function
}) => {
  const { message, title = '提示', cbk } = option
  ElMessageBox.alert(
    //@ts-ignore
    message,
    title,
    {
      confirmButtonText: '确认',
      callback: () => {
        cbk && cbk()
      },
    },
  )
}